package _021_10_5

func InversePairs(data []int) int {
	p := 0
	for i := 0; i < len(data)-1; i++ {
		for j := i + 1; j < len(data)-1; j++ {
			if data[i] > data[j] {
				p++
			}
		}
	}
	return p % 1000000007
}
